#ifndef REGIONGRID_H
#define REGIONGRID_H

#include <QGraphicsItemGroup >
#include <QObject>
#include "FovCell.h"
class RegionGrid :public QObject,public QGraphicsItemGroup
{
    Q_OBJECT
public:
    RegionGrid(int roiRow,int roiCol,QSize roiSize,int spacing,QObject* parent=nullptr);
    QHash<int,FovCell*> getFovs(){return fovHash;}
    int getFovCount(){return fovCount;}

signals:
    void roiClicked(int roiRow,int roiCol,int fovRow,int fovCol);

private slots:
    void onRoiClicked(int roiRow,int roiCol,int fovRow,int fovCol);

private:
    int row;
    int col;
    QHash<int,FovCell*> fovHash;
    int fovCount;
};

#endif // REGIONGRID_H
